.class Lcom/netease/newsreader/appwidget/WidgetService4x1$2;
.super Landroid/os/Handler;
.source "WidgetService4x1.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/appwidget/WidgetService4x1;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/appwidget/WidgetService4x1;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    .line 267
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6
    .parameter "msg"

    .prologue
    .line 271
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 272
    iget v2, p1, Landroid/os/Message;->what:I

    packed-switch v2, :pswitch_data_0

    .line 289
    :goto_0
    return-void

    .line 275
    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Landroid/graphics/Bitmap;

    .line 276
    .local v0, bitmap:Landroid/graphics/Bitmap;
    iget-object v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    invoke-static {v2}, Lcom/netease/newsreader/appwidget/WidgetService4x1;->access$9(Lcom/netease/newsreader/appwidget/WidgetService4x1;)Landroid/widget/RemoteViews;

    move-result-object v2

    const v3, 0x7f0c018f

    invoke-virtual {v2, v3, v0}, Landroid/widget/RemoteViews;->setImageViewBitmap(ILandroid/graphics/Bitmap;)V

    .line 277
    iget-object v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    new-instance v3, Landroid/content/ComponentName;

    iget-object v4, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    .line 278
    const-class v5, Lcom/netease/newsreader/appwidget/WidgetProvider_4_1;

    invoke-direct {v3, v4, v5}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 277
    invoke-static {v2, v3}, Lcom/netease/newsreader/appwidget/WidgetService4x1;->access$10(Lcom/netease/newsreader/appwidget/WidgetService4x1;Landroid/content/ComponentName;)V

    .line 279
    iget-object v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    .line 280
    iget-object v3, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    invoke-static {v3}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v3

    .line 279
    invoke-static {v2, v3}, Lcom/netease/newsreader/appwidget/WidgetService4x1;->access$11(Lcom/netease/newsreader/appwidget/WidgetService4x1;Landroid/appwidget/AppWidgetManager;)V

    .line 282
    :try_start_0
    iget-object v2, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    invoke-static {v2}, Lcom/netease/newsreader/appwidget/WidgetService4x1;->access$12(Lcom/netease/newsreader/appwidget/WidgetService4x1;)Landroid/appwidget/AppWidgetManager;

    move-result-object v2

    iget-object v3, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    invoke-static {v3}, Lcom/netease/newsreader/appwidget/WidgetService4x1;->access$13(Lcom/netease/newsreader/appwidget/WidgetService4x1;)Landroid/content/ComponentName;

    move-result-object v3

    iget-object v4, p0, Lcom/netease/newsreader/appwidget/WidgetService4x1$2;->this$0:Lcom/netease/newsreader/appwidget/WidgetService4x1;

    invoke-static {v4}, Lcom/netease/newsreader/appwidget/WidgetService4x1;->access$9(Lcom/netease/newsreader/appwidget/WidgetService4x1;)Landroid/widget/RemoteViews;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/appwidget/AppWidgetManager;->updateAppWidget(Landroid/content/ComponentName;Landroid/widget/RemoteViews;)V
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 283
    :catch_0
    move-exception v1

    .line 285
    .local v1, e:Ljava/lang/RuntimeException;
    invoke-virtual {v1}, Ljava/lang/RuntimeException;->printStackTrace()V

    goto :goto_0

    .line 272
    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method
